import msgpack

if __name__ == '__main__':
    with open('blocktree.msgpack','rb') as f:
        packed_dict = f.read()
        jsontext = msgpack.unpackb(packed_dict,raw=False)
        with open('blocktree.json','w') as j:
            j.write(str(jsontext))

